'use strict';



/**
 * @param {Egg.Application} app - egg application
 */
module.exports = app => {

  
    const { router, controller } = app;

    let { prefix } = app.config.apiServer;

    router.get('/', controller.home.index);


    router.post(`${prefix}/user/uploadFile`, controller.zinvest.uploadFile);

    router.get(`${prefix}/user/captcha.png`, controller.zinvest.captcha);

    router.all(`${prefix}/**`, controller.zinvest.forward);
    
};


